package com.icefish.dao;

import com.icefish.bean.Order;

import java.util.ArrayList;
import java.util.List;

public interface OrderDao {

    //根据用户id获取订单信息
    ArrayList<Order> selectOrderByUserId(Integer userId) throws Exception;

    //结算购物车订单成数据
    Integer insertCartToOder(Order order) throws Exception;

    // 单独结算购物车
    boolean addOrderBySingleShopCart (Order order) throws Exception;

    // 修改评论数据
    boolean updateOrderSays (Order order) throws Exception;

    // 删除订单记录
    boolean deleteOrderById (Integer order_id) throws Exception;
}
